package com.lh.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@TableName( "problem_summary_info")
public class ProblemSummaryInfo {

    /**
     * 主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 突出问题
     */
     @TableField("prominent_issue")
    private String prominentIssue;

    /**
     * 具体表现
     */
     @TableField("content")
    private String content;

    /**
     * 牵头部门
     */
     @TableField("lead_unit")
    private String leadUnit;

    /**
     * 完成时限
     */
     @TableField("complete_deadline")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date completeDeadline;

    /**
     * 完成时间
     */
     @TableField("end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 问题来源
     */
     @TableField("data_resource")
    private String dataResource;

    /**
     * 状态
     */
     @TableField("status")
    private String status;

    /**
     * 创建时间
     */
     @TableField("created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @TableField("remark")
    private String remark;

    /**
     * 突出问题编号
     */
     @TableField("summary_no")
    private String summaryNo;

    /**
     * 审核说明
     */
     @TableField("review_explain")
    private String reviewExplain;

    /**
     * 牵头领导
     */
     @TableField("lead_leader")
    private String leadLeader;

    // 存放小问题json
    private String question;

     @TableField("apply_reason")
    private String applyReason;

     @TableField("apply_url")
    private String applyUrl;

    @TableField(exist = false)
    private List<Object> JsonDataList;

    @TableField(exist = false)
    private List<Object> tasks;

    private String annex;

    private String remarks;

    /**
     * 项目名称
     */
    @TableField("project_name")
    private String projectName;
    /**
     * 项目类别
     */
    @TableField("project_category")
    private String projectCategory;
}
